package impl_v1;

import model.Bid;

public class BidImpl implements Bid {

	private static final long serialVersionUID = 2315540415308575995L;
	private final int price;
	private final String name;
	private final String email;

	public BidImpl(int price, String name, String email) {
		super();
		this.price = price;
		this.name = name;
		this.email = email;
	}

	@Override
	public int getPrice() {
		return price;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getEmail() {
		return email;
	}

	@Override
	public String toString() {
		return "Bid[price="+price+", name=\""+name+"\", email=\""+email+"\"]";
	}
}
